package com.nbgroup.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dict_data")
@ApiModel(value="DictData对象", description="")
public class DictData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "dict_code", type = IdType.AUTO)
    private Long dictCode;

    @ApiModelProperty("字典标签")
    private String dictLabel;

    @ApiModelProperty(value = "字典标记")
    private String remark;

    @ApiModelProperty(value = "字典键值")
    private String dictValue;

    @ApiModelProperty(value = "字典排序")
    private Integer dictSort;

    @ApiModelProperty(value = "字典类型")
    private String dictType;

    @ApiModelProperty(value = "字典码状态")
    private Integer status;

    @ApiModelProperty(value = "是否是默认值")
    @TableField(exist = false)
    private String isDefault;

    @TableField(value = "is_default")
    private Integer isDefaulty;

    @ApiModelProperty(value = "默认")
    @JsonProperty("default")
    @TableField(exist = false)
    private Boolean defaultValue;

    @ApiModelProperty(value = "列表类型")
    private String listClass;

    @ApiModelProperty(value = "字典描述")
    private String descr;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建者名")
    private String createBy;

    @ApiModelProperty(value = "创建人id")
    private Long createEmpId;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "修改人id")
    private Long updateEmpId;


}
